package edu.ynu.se.xiecheng.achitectureclass.project.dao;

import edu.ynu.se.xiecheng.achitectureclass.project.entity.Greenhouse;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;

public interface GreenhouseRepository extends JpaRepository<Greenhouse, Long> {
    Optional<Greenhouse> findByName(String name);
}